#include "v1_user.h"

using namespace v1;

void User::getInfo(const HttpRequestPtr &req,
		std::function<void(const HttpResponsePtr &)> &&callback,
		const std::string &userId,
		const std::string &token) const {
	LOG_DEBUG << "User " << userId << " getInfo";
	Json::Value ret;
	ret["result"] = "ok";
	ret["user_id"] = userId;
	auto resp = HttpResponse::newHttpJsonResponse(ret);
	callback(resp);
}